/*
package com.thread.threadfirst.rabbitMQPublisher.consumer;

import com.thread.threadfirst.rabbitMQPublisher.constant.AMQPConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j  //lombok依赖中的
public class ConsumerFourth {

    @RabbitHandler
    @RabbitListener(queues = AMQPConstant.QUEUE_THIRD)
    //注意：这里queue的名字是return new Queue(AMQPConstant.DEFAULT_QUEUE);这行设定的。
    public void listener(String context) {
        System.out.println("Receiver3 : " + context);
    }
}
*/
